package com.tdam2011.grupo02.messagesender;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class StartUpdateMessagesReceiver extends BroadcastReceiver {

	private static final String TAG = "StartUpdateMessagesReceiver";
	private static final String UPDATE_WEB_MESSAGES = "com.tdam2011.grupo02.messagesender.UPDATE_WEB_MESSAGES";

	@Override
	public void onReceive(Context context, Intent intent) {
		Log.d(TAG, "onReceive");

		Intent intentService = new Intent();
		intentService.setAction(UPDATE_WEB_MESSAGES);

		context.startService(intentService);
	}
}
